<template>
	<!-- 
		$forceUpdate() 强制当前组件更新，触发的更新的生命周期函数

		新增的钩子函数
		activated：被 keep-alive 缓存的组件激活时调用
		deactivated:被 keep-alive 缓存的组件失活时调用
	-->
  <div>
		<button @click="count++">changeConut </button> count: {{count}}
    <One/>
  </div>
</template>

<script>
import One from "@/pages/One";
export default {
  name: "App",
	data() {
		return {
			count:0
		}
	},
  components: {
    One
  },
};
</script>

<style scoped></style>
